#@layout()
#define content()
<div class="content-wrapper">

    <section class="content-header">
        <h1>
            文章管理
            <small>Control panel</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li class="active">Dashboard</li>
        </ol>
    </section>

    <section class="content-header text-tap">
        <a href="">全部 (24)</a> | <a href="">已发布 (22)</a> | <a href="">草稿 (2)</a> | <a href="">垃圾箱 (0)</a>
    </section>

    <section class="content">

        <div class="row">
            <div class="col-xs-12">
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <form class="form-horizontal actionPanel">
                            <div class="row">
                                <div class="form-group col-xs-4">
                                    <label class="col-sm-3 control-label">标题</label>
                                    <div class="col-sm-9">
                                        <input type="text" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group col-xs-4">
                                    <label class="col-sm-3 control-label">作者</label>
                                    <div class="col-sm-9">
                                        <input class="form-control">
                                    </div>
                                </div>
                                <div class="form-group col-xs-4">
                                    <button type="submit" class="btn btn-primary ">查询</button>
                                    <button type="reset" class="btn btn-default">重置</button>
                                    <a class="btn"> 更多<i class="fa fa-fw fa-angle-down"></i> </a>
                                </div>
                            </div>
                            <!-- /.box-body -->
                        </form>

                        <div class="row actionPanel">
                            <div class="col-xs-12">
                                <a href="/admin/article/write" class="btn btn-primary "> <i
                                        class="fa fa-fw fa-plus"></i> 新建</a>
                                <button type="button" class="btn btn-default checkAction"> 批量删除</button>
                            </div>
                        </div>

                    </div>
                    <!-- /.box-header -->
                    <div class="box-body ">

                        <table class="table table-striped">
                            <tbody>
                            <tr>
                                <th style="width: 10px"><input name="dataItem" onchange="checkAll(this)" type="checkbox"
                                                               value="0"/></th>
                                <th style="width: 350px">标题</th>
                                <th>作者</th>
                                <th>分类</th>
                                <th>专题</th>
                                <th>标签</th>
                                <th>评论</th>
                                <th style="width: 100px">发布时间</th>
                            </tr>

                            #for(article : page.list)
                            <tr class="jp-actiontr">
                                <td><input class="dataItem" type="checkbox" value="32" onchange="dataItemChange(this)"/>
                                </td>
                                <td>
                                    <a href="/admin/article/write/#(article.id)">#(article.title ??)</a>
                                    <div class="jp-actionblock">
                                        <div class="jp-actionitem">
                                            <a href="#" style="color: #006505">编辑</a> | <a href="#" style="color: #006505">草稿</a> | <a href="#" style="color: #a00">垃圾箱</a> | <a href="#" style="color: #a00">查看</a>
                                        </div>
                                    </div>

                                </td>
                                <td>#(article.author ??)</td>
                                <td>#(article.categorys ??)</td>
                                <td>#(article.subjects ??)</td>
                                <td>#(article.tags ??)</td>
                                <td>#(article.comment_count ??)</td>
                                <td>#(article.created ??)</td>
                            </tr>
                            #end

                            </tbody>
                        </table>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                        <div class="row">
                            <div class="col-sm-12">
                                #@_paginate()
                            </div>
                        </div>
                    </div>
                </div>
                <!-- /.box -->
            </div>
        </div>

    </section>


</div>
#end
